using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using SiteECSWeb;
using Microsoft.Reporting.WebForms;
using System.IO;

public partial class News_ReportNews : PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        #region SiteMap
        Helper.BuildDynamicSiteMap("News",
            Globals.Settings.VirtualNamesInfo.NewsArchive, true, "News One",
            Globals.Settings.VirtualNamesInfo.NewsDetails,
            string.Empty,
            Globals.Settings.VirtualNamesInfo.NewsEdit,
            Globals.Settings.VirtualNamesInfo.NewsReport,
            false);
        this.SiteMapNodeProvider = SiteMapProviderNames.DynamicSiteMapProvider.ToString();
        SiteMapPath1.SiteMapProvider = SiteMapNodeProvider;
        #endregion
    }
    protected void NewsDataSource_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
    {
        int NewsID;
        if (Helper.CheckAndGetQueryStringInt("NewsID",
           Globals.Settings.VirtualNamesInfo.NewsReport, out NewsID))
        {
            e.InputParameters["News_id"] = NewsID.ToString();
        }
    }
    protected void NewsDataSource_Selected(object sender, ObjectDataSourceStatusEventArgs e)
    {
        if (e.Exception == null)
        {
            EcsSiteDS.NewsDataTable NewsTable =
                (EcsSiteDS.NewsDataTable)e.ReturnValue;
            if (NewsTable.Count > 0)
            {
                EcsSiteDS.NewsRow NewsRow = NewsTable[0];
                
            }
        }
    }
}
